﻿using Microsoft.Practices.Composite.Regions;

namespace Airborne.ScrumPoker.Module
{
    public static class RegionExtensions
    {
        public static void AddAndActivate(this IRegion region, object view)
        {
            Guard.IsNotNull(view, "view");
            region.Add(view);
            region.Activate(view);
        }
    }
}
